package com.softWang.system.service;

import com.softWang.system.controller.vo.systemOperatorLog.SystemOperatorLogQueryAllParam;
import com.softWang.system.controller.vo.systemOperatorLog.SystemOperatorLogQueryAllResult;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.List;

import com.softWang.common.base.BaseServiceMy;
import com.softWang.system.po.SystemOperatorLog;
import com.softWang.system.mapper.SystemOperatorLogMapper;

/**
 * <p>
 * 系统管理--操作日志表 服务实现类
 * </p>
 *
 * @author wang
 * @since 2025-04-28
 */
@Service
public class SystemOperatorLogService extends BaseServiceMy<SystemOperatorLog> {

     @Resource
     private SystemOperatorLogMapper systemOperatorLogMapper;

     /**
     * 分页条件查询
     * @param param
     * @return
     */
     public List<SystemOperatorLogQueryAllResult> queryall(SystemOperatorLogQueryAllParam param){
         param.startPage();
         List<SystemOperatorLogQueryAllResult> results=systemOperatorLogMapper.queryall(param);
         return results;
     }


      /**
      * 获取详情
      * @param id id
      * @return 详情信息
      */
      public SystemOperatorLog getById(Long id) {
           return systemOperatorLogMapper.selectById(id);
      }

      /**
      * 删除部门
      * @param ids 部门id列表
      * @return void
      */
      @Transactional
      public void del(List<Long> ids) {
          systemOperatorLogMapper.deleteBatchIds(ids);
      }

      @Async
      public void add(SystemOperatorLog log){
          systemOperatorLogMapper.insert(log);
      }

}
